package cn.easybuy.dao;

import java.util.List;

import cn.easybuy.entity.MyOrder;
import cn.easybuy.entity.Order1;

public interface BuyCarDao {
	//閫氶敓鏂ゆ嫹閿熺煫浼欐嫹閿熸枻鎷烽敓绐栴垽鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓杈冿拷
	public List<MyOrder> getBuyCarlistByLoginName(String loginName);
	//閿熸枻鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓鏂ゆ嫹閿熸枻鎷锋伅
	public int setBuyCar(List<MyOrder> buyCar);
	//閫氶敓鏂ゆ嫹閿熺煫浼欐嫹閿熸枻鎷烽敓绐栴垽鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓鏂ゆ嫹閿燂拷
	public int getBuyCarCountByLoginName(String loginName);
	//閸掔娀娅庣拹顓犲⒖鏉烇妇娈戦弻鎰嚋娣団剝浼�
	public  int  delId(int id);
	//閺囧瓨鏌婄拹顓犲⒖鏉烇缚淇婇幁锟�
	public  int  updateList(List<MyOrder> list);
	//删除某个用户的购物车信息
	public int delAll(String userName);
	//查询商品的库存
	public  int stock(int id);
}
